﻿using System.Diagnostics;
using System.Reflection;

namespace Morus.Presentation
{
    public static class AssemblyExtension
    {
        [DebuggerStepThrough]
        public static string GetNameSafe(this Assembly assembly)
        {
            Check.Argument.IsNotNull(assembly, "assembly");

            return new AssemblyName(assembly.FullName).Name;
        }
    }
}
